package com.liangzhong.model.club.vo
{
	import com.global.GlobalDef;

	/**
	 *npc 俱乐部信息 
	 * @author lake
	 * 
	 */	
	public class NpcClubInfoVo
	{
		/**
		 * 俱乐部id
		 */		
		public var cid 			:int;
		/**
		 * 俱乐部名字
		 */		
		public var name 		:String;
		/**
		 * 国家
		 */		
		public var country 		:int;
		/**
		 * 级别
		 */		
		public var level		:int;
		/**
		 * 联盟
		 */		
		public var league 		:int;
		/**
		 *描述 
		 */		
		public var descplay		:String ;
		/**
		 *招牌球星 
		 */		
		public var starIds		:Array = [];
		/**
		 *签约球星id 
		 */		
		public var sign1		:int;
		/**
		 *签约球星id 
		 */		
		public var sign2		:int;
		/**
		 *签约球星id 
		 */		
		public var sign3		:int;
		/**
		 *签约指数 
		 */		
		public var relation		:int;
		/**
		 *30*30图片地址 
		 */		
		public var url_30		:String ;
		/**
		 *35*35图片地址 
		 */		
		public var url_35		:String ;
		/**
		 *50*50图片地址 
		 */		
		public var url_50		:String ;
		/**
		 *60*60图片地址 
		 */		
		public var url_60		:String ;
		/**
		 *125*125图片地址 
		 */		
		public var url_125		:String ;
		/**
		 *临时保存显示对象 
		 */		
		public var imgObj		:*;
		
		public function NpcClubInfoVo()
		{
		}
		/**
		 *解析数据 
		 * @param data
		 * 
		 */		
		public function parse(data :Object):void
		{
			var xmlList:XMLList = data.children();
			for each(var xml:XML in xmlList)
			{
				if(this.hasOwnProperty(xml.localName()))
				{
					this[xml.localName()] = xml.toString();
				}
			}
			if(sign1)
			{
				starIds.push(sign1);
			}
			if(sign2)
			{
				starIds.push(sign2);
			}
			if(sign3)
			{
				starIds.push(sign3);
			}
			url_30 	= GlobalDef.Web_Res_Url + "clubicon/30-30/" + cid + ".png";
			url_35 	= GlobalDef.Web_Res_Url + "clubicon/35-35/" + cid + ".png";
			url_50 	= GlobalDef.Web_Res_Url + "clubicon/50-50/" + cid + ".png";
			url_60 	= GlobalDef.Web_Res_Url + "clubicon/60-60/" + cid + ".png";
			url_125 = GlobalDef.Web_Res_Url + "clubicon/125-125/" + cid + ".png";
		}
	}
}